from lxml import etree

html_tree = etree.HTML(open('..\\bs4\\三国章节.html', 'r', encoding='utf-8').read())
for i in html_tree.xpath('//a/text()'):     # 从‘三国章节吧.html’匹配所有的标签a，/text()表示获取标签里的内容
    print(i)
